package com.anjubao.parking.municipal.parkinglot.service;

import com.anjubao.parking.municipal.parkinglot.dto.DeviceLogPictureDto;
import com.anjubao.parking.municipal.parkinglot.mapper.ParkingLotDeviceLogPictureMapper;
import com.anjubao.parking.municipal.parkinglot.model.ParkingLotDeviceLogPicture;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * 告警图片服务
 * 
 * @author anjubao
 *
 */
@Service
@Slf4j
public class ParkingLotDeviceLogPictureService extends ServiceImpl<ParkingLotDeviceLogPictureMapper, ParkingLotDeviceLogPicture> {

    @Autowired
    private ParkingLotDeviceLogPictureMapper parkingLotDeviceLogPictureMapper;

    /**
     * 新增图片信息
     * @param deviceLogPictureDtoList
     */
    public void savePicture(List<DeviceLogPictureDto> deviceLogPictureDtoList) {
        parkingLotDeviceLogPictureMapper.savePicture(deviceLogPictureDtoList);
    }
}
